package com.pxst.sys.req;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

import com.pxst.annotations.mybatits.Query;

import com.pxst.entity.Insert;
import com.pxst.entity.Update;
import com.pxst.req.BasePageRsp;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

/** 
* @author yangxy
* @version 创建时间：2023年7月26日 下午6:27:27 
*/
@Data
public class UserCreateReq extends BasePageRsp {
	@NotBlank(message = "用户名不能为空", groups = {Insert.class})
	@ApiModelProperty(value = "用户名", required = true)
	@Query
	private String userName;

	@NotBlank(message = "用户全名不能为空", groups = {Insert.class})
	@ApiModelProperty(value = "用户全名", required = true)
	private String fullName;

	@NotBlank(message = "密码不能为空", groups = {Insert.class})
	@ApiModelProperty(value = "密码", required = true)
	private String password;

	@NotNull(message = "角色id不能为空", groups = {Insert.class})
	@ApiModelProperty(value = "角色id", required = true)
	private Long roleId;

	@NotNull(message = "币种列表不能为空", groups = {Insert.class})
	@ApiModelProperty(value = "币种列表", required = true)
	private List<String> currency;

	@ApiModelProperty("用户id")
	private Long id;

	@NotNull(message = "状态不能为空", groups = {Update.class})
	@ApiModelProperty(value = "状态（1启用，0停用）", required = true)
	private Integer status;

	@ApiModelProperty("币种查询方式（0交集，1并集）")
	private Integer currencyUnion;

	@ApiModelProperty(value = "角色id集合")
	private List<Long> roleIdList;

}
